package com.kandinfo.base.security;

public class Permissions {
    
    /*
    *系统权限管理
    */
    public static final String ADMIN_PERMISSION_MANAGE="admin_permission:manage";
    
    /*
    *添加用户信息
    */
    public static final String ADMIN_USER_ADD="admin_user:add";
    /*
    *编辑用户信息
    */
    public static final String ADMIN_USER_EDIT="admin_user:edit"; 
    /*
    *删除用户信息
    */
    public static final String ADMIN_USER_DELETE="admin_user:delete";
    /*
    *查看用户信息
    */
    public static final String ADMIN_USER_VIEW="admin_user:view";
    /*
    *添加角色信息
    */
    public static final String ADMIN_ROLE_ADD="admin_role:add";
    /*
    *编辑角色信息
    */
    public static final String ADMIN_ROLE_EDIT="admin_role:edit";
     
    /*
    *删除角色信息
    */
    public static final String ADMIN_ROLE_DELETE="admin_role:delete"; 
    
    /*
    *查看角色信息
    */
    public static final String ADMIN_ROLE_VIEW="admin_role:view";
 
    /*
    *添加家长信息
    */
    public static final String PARENT_ADD="parent:add";
    
    /*
    *编辑家长信息
    */
    public static final String PARENT_EDIT="parent:edit";
     
    /*
    *删除家长信息
    */
    public static final String PARENT_DELETE="parent:delete"; 
    
    /*
    *查看家长信息
    */
    public static final String PARENT_VIEW="parent:view";
    
    /*
    *为家长添加孩子
    */
    public static final String PARENT_CHILDREN_ADD="parent_children:add";
    
    /*
    *编辑家长孩子信息
    */
    public static final String PARENT_CHILDREN_EDIT="parent_children:edit";
     
    /*
    *删除家长孩子信息
    */
    public static final String PARENT_CHILDREN_DELETE="parent_children:delete"; 
    
    /*
    *查看家长孩子信息
    */
    public static final String PARENT_CHILDREN_VIEW="parent_children:view";
    
    /*
    *添加教师信息
    */
    public static final String TEACHER_ADD="teacher:add";
    
    /*
    *编辑教师信息
    */
    public static final String TEACHER_EDIT="teacher:edit";
     
    /*
    *删除教师信息
    */
    public static final String TEACHER_DELETE="teacher:delete"; 
    
    /*
    *查看教师信息
    */
    public static final String TEACHER_VIEW="teacher:view";
    
    /*
    *查看订单信息
    */
    public static final String ORDER_VIEW="order:view";
    
    /*
    *查看通关卡信息
    */
    public static final String CARNET_VIEW="carnet:view";
    
    /*
    *新增通关卡
    */
    public static final String CARNET_ADD="carnet:add";
    
    /*
    *用户修改密码
    */
    public static final String USER_PASSWORD_UPDATE="user_password:update";
    
    
    
    /*
    *所有权限
    */
    public static final String ALL[] = new String[]{
        ADMIN_PERMISSION_MANAGE,
        USER_PASSWORD_UPDATE,
        ADMIN_USER_ADD,
        ADMIN_USER_EDIT,
        ADMIN_USER_DELETE,
        ADMIN_USER_VIEW,
        
        ADMIN_ROLE_ADD,
        ADMIN_ROLE_EDIT,
        ADMIN_ROLE_DELETE,
        ADMIN_ROLE_VIEW,
        
        PARENT_ADD,
        PARENT_EDIT,
        PARENT_DELETE,
        PARENT_VIEW,
        
        PARENT_CHILDREN_ADD,
        PARENT_CHILDREN_EDIT,
        PARENT_CHILDREN_DELETE,
        PARENT_CHILDREN_VIEW,
        
        TEACHER_ADD,
        TEACHER_EDIT,
        TEACHER_DELETE,
        TEACHER_VIEW,
        
        ORDER_VIEW,
        
        CARNET_VIEW,
        CARNET_ADD,
    };
    
    /*
    *除了禁用启用之外的所有权限
    */
    public static final String AllExceptEnable[] = new String[]{
        ADMIN_PERMISSION_MANAGE,
        
        ADMIN_USER_ADD,
        ADMIN_USER_EDIT,
        ADMIN_USER_DELETE,
        ADMIN_USER_VIEW,
        
        ADMIN_ROLE_ADD,
        ADMIN_ROLE_EDIT,
        ADMIN_ROLE_DELETE,
        ADMIN_ROLE_VIEW,
        
        PARENT_ADD,
        PARENT_EDIT,
        PARENT_DELETE,
        PARENT_VIEW,
        
        PARENT_CHILDREN_ADD,
        PARENT_CHILDREN_EDIT,
        PARENT_CHILDREN_DELETE,
        PARENT_CHILDREN_VIEW,
        
        TEACHER_ADD,
        TEACHER_EDIT,
        TEACHER_DELETE,
        TEACHER_VIEW,
        
        ORDER_VIEW,
        
        CARNET_VIEW,
        CARNET_ADD,
    };
}
